<#include "/macro/utils.ftl">
<#if showItems??>
	<#if showItems.pageNo == 1>
		<input type="hidden" id="pageCount" value="${showItems.pageCount}" />
	</#if>
	<#assign items = showItems.items>	
	<#if items?size &gt; 0>
	<#list items as item>
	<#assign url = contextPath + "/movie/trailer/" + item.id>
	<#assign playUrl = contextPath + "/movie/trailer/watch-" + item.id>
	<#assign img = contextPath + item.thumbnail>		
	<div class="m_box2_3 mi_box">
	<div class="img">
		<a href="${url}"><img style="width: 125px; height: 170px;" width="125" height="185" src="${img}" border="0"/></a>
		<div class="tc_btn" style="width: 125px; height: 170px;display:none">
            <a href="${playUrl}" class="pbox"><span class="btn_play4 pbox_m3">Play</span></a>
            <div class="tc_m">
            <span class="vbox"><a href="${url}" class="btn_view4">View</a></span>
            <span class="dbox"><a href="javascript:;" itemUrl="${item.itemUrl!''}" class="btn_down4 download_btn" website="${item.website}" itemTitle="${item.title!''}">Download</a></span>
            </div>
            <div class="i_zz"></div>
        </div>
	</div>
	<ul>
	<li class="name"><a href="${url}"><@fromatTitle item.parentTitle!'' item.title!'' 20 30 /></a></li>
	<#if item.publishTime??>
    <li class="c_time">Opens ${item.publishTime?date}</li>
    </#if>
    </ul>
    </div>
    </#list>    
 	<#else>
    <div class="selectBox_none">
	<p>There are no videos available in this filter, please turn to other pages to find more.</p>
	</div>
	</#if>
<#else>
	<div class="selectBox_none">
		<p>There are no videos available.</p>
	</div>
</#if>

